package com.yupi.springbootinit.emun;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum AnswerEnum {
    ANSWER_CORRECT("1", "正确"),

    ANSWER_ERROR("0", "错误");
    @EnumValue
    private final String type;

    @JsonValue
    private final String value;

    AnswerEnum(String type, String value) {

        this.type = type;
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public String getValue() {
        return value;
    }
}
